package com.jxl.domain.service;

import com.jxl.domain.entity.AuthPermissionBO;
import com.jxl.domain.entity.AuthRoleBO;
import com.jxl.domain.entity.AuthUserRoleBO;

import java.util.List;

public interface AuthPermissionDomainService {

    /**
     * 权限添加
     * @param authPermissionBO
     * @return
     */
    Boolean add(AuthPermissionBO authPermissionBO);

    /**
     * 权限修改
     * @param authPermissionBO
     * @return
     */
    Boolean update(AuthPermissionBO authPermissionBO);

    /**
     * 权限删除
     * @param authPermissionBO
     * @return
     */
    Boolean delete(AuthPermissionBO authPermissionBO);

    /**
     * 获取用户权限
     * @param userName
     * @return
     */
    List<String> getPermission(String userName);
}
